month = int(input("请输入月份："))
age = int(input("请输入年龄："))

if 4 <= month <= 10:
    if 18 <= age <= 60:
        print("票价 60")
    elif age < 18:
        print("票价 半价")
    elif age > 60:
        print("票价 1/3")
else:
    if 18 <= age <= 60:
        print("票价 40")
    else:
        print("票价 20")
